//
//  YunOrderListModel.h
//  BaseProject
//
//  Created by 王盼盼 on 2024/10/22.
//  Copyright © 2024 wangpanpan. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface YunOrderListModel : NSObject
@property(nonatomic, copy) NSString *orderId;
@property(nonatomic, copy) NSString *sellerName;
@property(nonatomic, copy) NSString *sellerId;
@property(nonatomic, copy) NSString *createTime;

/// 金额
@property(nonatomic, assign) double amount;

/// 支付金额
@property(nonatomic, assign) double payAmount;

/// 用户优惠
@property(nonatomic, assign) double userFree;

/// 支付渠道（WECHAT,ALIPAY,UNION)
@property(nonatomic, copy) NSString *tradeType;

/// 支付类型（LKL,UNION）
@property(nonatomic, copy) NSString *type;

/// WAIT SUCCESS  (ACCEPTED:已受理,PROCESSING:处理中,FAIL:失败,SUCCESS:成功,CANCELING:撤销中,CANCELED:撤销成功,CANCEL_FAIL:撤销失败,FALLBACKING:回退中,FALLBACK_END:回退结束)
@property(nonatomic, copy) NSString *status;

@property(nonatomic, copy, readonly) NSString *statusDes;

@property(nonatomic, assign, readonly) BOOL isSucceed;

@property(nonatomic, assign, readonly) BOOL isWaitPay;

/// POST_PAY:酒店订单  PRE_PAY 
@property(nonatomic, copy, nullable) NSString *payMode;
/// POST_PAY:酒店订单  （PRE,MIDDLE,LATER）
@property(nonatomic, copy, nullable) NSString *payType;


// 积分接口所需
@property(nonatomic, copy) NSString *uprId;
@property(nonatomic, assign) double points;

@property(nonatomic, strong) NSArray<YunOrderListModel *> *yunOrderSubList;

@property(nonatomic, assign) CGFloat cellHeight;
@end

NS_ASSUME_NONNULL_END
